<%@ page import="com.hehe.entity.User" %>
<%@ page language="java" contentType="text/html; charset=UTF-8"
		 pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="Content-Type" content="IE=edge">
<title>个人中心</title>
	<link rel="stylesheet" href="/market/css/common.css">

	<!-- 新 Bootstrap 核心 CSS 文件 -->
	<link href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">

	<!-- jQuery文件。务必在bootstrap.min.js 之前引入 -->
	<script src="https://code.jquery.com/jquery-3.1.1.min.js"></script>

	<!-- 最新的 Bootstrap 核心 JavaScript 文件 -->
	<script  src="https://cdn.bootcss.com/bootstrap/3.3.7/js/bootstrap.min.js"> </script>

	<script type="text/javascript" src="/market/js/ajaxfileupload.js"></script>
	<script type="text/javascript" src="/market/js/user-info.js"></script>

</head>
<body >


	<%@include file="navbar.jsp"%>

	<%--返回错误信息,没有起作用--%>
	<%
		String s = (String)request.getAttribute("error");
		if (s!=null){%>
	<div class="alert alert-warning" style="margin-top: 50px">
		<a href="#" class="close" data-dismiss="alert">
			&times;
		</a>
		<%=s%>
	</div>
	<%}%>

	<div class="row " style="margin-top: 50px; background-image: url(/WEB-INF/images/kj.png)" >
		<div class="col-sm-4 col-xs-6">
			<%--<h1 class="page-header" style="margin-top: 70px; margin-left: 10px;">个人中心</h1>--%>
				<div class="col-sm-4" style="margin: 10px 0px 10px 0px">
					<c:set var="str" value="${userInfo.headPic}"></c:set>
					<c:if test="${null == str }">
						<img class="img-responsive img-circle RoundImg" src="/market/images/kj.png" alt="headimg">
					</c:if>
					<c:if test="${not empty str}">
						<img class="img-responsive img-circle " src="showHeadPic" alt="headimg" style="height: 113px ">
					</c:if>


				</div>
				<div class="col-sm-4 text-left" style="padding-top: 30px">
					<h4><%=((User)session.getAttribute("user")).getNickname()%> </h4>

				</div>
		</div>

		<div class="col-sm-9 col-xs-6" >


		</div>

	</div>




	<ul class="nav  nav-pills nav-justified" >
		<li class="active"><a href="#myConnection"  data-toggle="pill" >我的收藏</a></li>
		<li><a href="#myPublish"  data-toggle="pill" >我的发布</a></li>
		<li><a href="#modifyInfo"  data-toggle="pill" >信息修改</a></li>
		<li><a href="#sysInfo"  data-toggle="pill" >系统消息</a></li>
	</ul>

	<!-- 每个tab页对应的内容 ,tab-pane fade为标签页设置淡入淡出效果-->
	<div  class="tab-content">
		
		<div class="tab-pane fade in active" id="myConnection">
			<br/>
			<%@include file="myCollection.jsp" %>
		</div>

		<div class="tab-pane fade" id="myPublish">
			<br/>
			<%@include file="myPublish.jsp" %>
		</div>
		
		<div class="tab-pane fade" id="modifyInfo">
			<br/><br/>
			<%@include file="userInfo.jsp"%>
		</div>
		
		<div class="tab-pane fade" id="sysInfo">
			<br/><br/>
			<%@include file="sysInfo.jsp"%>
		</div>
	</div>



</body>
</html>